<template>
  <FormItem label="标题名称">
    <Input :value="value" placeholder="请输入" @on-change="changeValue($event)" />
  </FormItem>
</template>

<script>
export default {
  props: ['value'],
  data () {
    return {};
  },
  methods: {
    changeValue (e) {
      this.$emit('updateValue', {
        value: e.target.value,
        name: 'labelName'
      });
    }
  }
};
</script>
